package com;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cac = new ClassPathXmlApplicationContext("com\\applicationContext.xml");
        FileSystemXmlApplicationContext ac = new FileSystemXmlApplicationContext("classpath:com\\applicationContext.xml");
        Chinese p = (Chinese) cac.getBean("person");
        System.out.println(p);
        Chinese p2 = (Chinese) ac.getBean("person");
        System.out.println(p2);
    }
}
